package io.renren.modules.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.sys.entity.MySysUserEntity;

import java.util.List;
import java.util.Map;

public interface MySysUserService extends IService<MySysUserEntity> {
    MySysUserEntity queryByUsername(String username);

    List<Long> queryAllMenuId(Long userId);

    PageUtils queryPage(Map<String, Object> params);

    void saveUser(MySysUserEntity user);

    void updateUser(MySysUserEntity user);

    void deleteBatch(Long[] userIds);

    boolean updatePassword(Long userId, String password, String newPassword);
}
